<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template name="loop">
<xsl:param name="p_selected">0</xsl:param>
<xsl:param name="i">0</xsl:param>
	<xsl:if test="$i &gt;= 0">
		<xsl:call-template name="loop">
			<xsl:with-param name="i" select="$i - 1"></xsl:with-param>
			<xsl:with-param name="p_selected" select="$p_selected"></xsl:with-param>
		</xsl:call-template>
		<option value="{$i}">
		<xsl:if test="$i=$p_selected">
		<xsl:attribute name="selected">SELECTED</xsl:attribute>
		</xsl:if>
		<xsl:value-of select="$i"/>
		</option>
	</xsl:if>
</xsl:template>
<xsl:template name="YMDdmy">
<xsl:value-of select="concat(substring($date, 9, 2), '.', substring($date, 6, 2), '.', substring($date, 1, 4) , ' ', substring($date, 12))"/>
</xsl:template>
</xsl:stylesheet>
